package com.longjianghuasheng.logistics.business.home.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.longjianghuasheng.logistics.R
import com.longjianghuasheng.logistics.business.home.TypeResponse
import com.longjianghuasheng.logistics.databinding.ItemHomeTabBinding
import com.longjianghuasheng.logistics.ext.loadUrl

class TabAdapter :
    BaseQuickAdapter<TypeResponse, BaseDataBindingHolder<ItemHomeTabBinding>>(R.layout.item_home_tab) {
    override fun convert(holder: BaseDataBindingHolder<ItemHomeTabBinding>, item: TypeResponse) {
        holder.dataBinding?.run {


            tvTab.text = item.title
            ivTab.loadUrl(item.picurl3)
        }
    }
}